package com.ruoyi.wb.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 维保类目列对象 wb_classify
 *
 * @author ruoyi
 * @date 2024-10-14
 */
@ApiModel(value = "WbClassify", description = "维保类目列实体")
public class WbClassify extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 主键 id */
    @ApiModelProperty(value = "主键 id")
    private Long id;

    /** 层级 */
    @Excel(name = "层级")
    @ApiModelProperty(value = "层级")
    private Long tier;

    /** 名称 */
    @Excel(name = "名称")
    @ApiModelProperty(value = "名称")
    private String classifyName;

    /** 显示顺序 */
    @Excel(name = "显示顺序")
    @ApiModelProperty(value = "显示顺序")
    private Long sort;

    /** 状态（0 正常，1 停用） */
    @Excel(name = "状态", readConverterExp = "0=正常，1 停用")
    @ApiModelProperty(value = "状态（0 正常，1 停用）")
    private Long status;

    private List<WbClassifyContent> wbClassifyContents;

    /** 删除标志（0 存在 1 删除） */
    @ApiModelProperty(value = "删除标志（0 存在 1 删除）")
    private Long delFlag;

    private String  rid;

    public String getRid() {
        return rid;
    }

    public void setRid(String rid) {
        this.rid = rid;
    }

    public List<WbClassifyContent> getWbClassifyContents() {
        return wbClassifyContents;
    }

    public void setWbClassifyContents(List<WbClassifyContent> wbClassifyContents) {
        this.wbClassifyContents = wbClassifyContents;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setTier(Long tier) {
        this.tier = tier;
    }

    public Long getTier() {
        return tier;
    }

    public void setClassifyName(String classifyName) {
        this.classifyName = classifyName;
    }

    public String getClassifyName() {
        return classifyName;
    }

    public void setSort(Long sort) {
        this.sort = sort;
    }

    public Long getSort() {
        return sort;
    }

    public void setStatus(Long status) {
        this.status = status;
    }

    public Long getStatus() {
        return status;
    }

    public void setDelFlag(Long delFlag) {
        this.delFlag = delFlag;
    }

    public Long getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("tier", getTier())
                .append("classifyName", getClassifyName())
                .append("sort", getSort())
                .append("status", getStatus())
                .append("delFlag", getDelFlag())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("updateTime", getUpdateTime())
                .append("updateBy", getUpdateBy())
                .append("remark", getRemark())
                .toString();
    }
}